package dukeCE.insightTracker;

import java.io.InputStream;
import java.net.URL;

import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class showPicture_activity extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.show_picture_activity);
        
        Object content = null;
        try{
          URL url = new URL("http://farm1.static.flickr.com/150/399390737_7a3d508730_b.jpg");
          content = url.getContent();
        }
          catch(Exception ex)
        {
            ex.printStackTrace();
        }
        InputStream is = (InputStream)content;
        Drawable image = Drawable.createFromStream(is, "src");
        ImageView imageBox = (ImageView) findViewById(R.id.ImageView01);
        imageBox.setImageDrawable(image);

    }
    
    public void backBtClick(View v)
    {
    	this.finish();
    }
}
